package com.bgs.controller;


import com.bgs.common.R;
import com.bgs.pojo.RolesMenus;
import com.bgs.service.RolesMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * roles_menus 前端控制器
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@RestController
@RequestMapping("/bgs/roles-menus")
public class RolesMenusController {
    @Autowired
    private RolesMenusService rolesMenusService;
    @PostMapping("UserRole")
    public R UserRole(@RequestBody RolesMenus addUserRoleUser){
        return rolesMenusService.UserRole(addUserRoleUser);
    }
}

